import axios from "axios";

// (async()=>{
//     let {data} = await api.get_list()
//     // console.log(data.list);
//     dispatch({
//       type:"GET_LIST",
//       payload:data
//     })
//   })()
export let get_list = () =>{
    return async (dispatch) =>{
        let {data} = await axios.get("/list")
            dispatch({
                type:"GET_LIST",
                payload:data
            })
    }
}